package com.pine.dcts.taskScheduling.common;

public class Constants {

	public static final Integer NO_SCHEDULER_TYPE=0;
	public static final Integer CORE_TYPE=2;

	public static final Integer NO_CORE_TYPE=2;

	/**
	 * ******************执行频率类型**********************
	 */
	/**
	 * 单次任务
	 */
	public static final Integer SINGLE_TASK = 1;

	/**
	 * 时间间隔任务
	 */
	public static final Integer GAP_TASK = 2;

	/**
	 * 每日任务
	 */
	public static final Integer DAILY_TASK = 3;

	/**
	 * 每周任务
	 */
	public static final Integer WEEKLY_TASK = 4;

	/**
	 * 每月
	 */
	public static final Integer MONTH_TASK = 5;
	/**
	 * 时间段执行任务
	 */
	public static final Integer CORE_TASK = 6;

	/**
	 * 服务API
	 */
	public static final String API_TYPE = "api";

	/**
	 * kettle
	 */
	public static final String KETTLE_TYPE = "kettle";
	/**
	 * ******************服务类型**********************
	 */
	/**
	 * 存储过程
	 */
	public static final String PROCEDURE_TYPE = "plsql";

	/**
	 * 数据库类型 oracle
	 */
	public static final String ORACLE_TYPE = "oracle";
	/**
	 * 数据库类型 oracle
	 */
	public static final String DM_TYPE = "DM_DATABASE";

	/**
	 * 数据库类型 inceptor
	 */
	public static final String INCEPTOR_TYPE = "inceptor";
	/**
	 * ******************服务参数类型**********************
	 */
	public static final String PARAM_STRING = "string";
	public static final String PARAM_INT = "integer";
	public static final String PARAM_DATE = "date";
	public static final String PARAM_DOUBLE = "double";
	/**
	 * ******************任务运行状态类型**********************
	 */
	public static final String STATUS_NOTRUNNING = "0";
	public static final String STATUS_RUNNING = "1";
	public static final String STATUS_ERROR = "2";
	public static final String STATUS_SUCCESS = "3";
	public static final String STATUS_HANDLE = "4";

	/**
	 * Job状态
	 */
	public static class JobStatus {
		/**
		 * 阻塞
		 */
		public static final Integer STATE_BLOCKED = 4;//阻塞

		/**
		 * 完成
		 */
		public static final Integer STATE_COMPLETE = 2;

		/**
		 * //错误
		 */
		public static final Integer STATE_ERROR  = 3;

		/**
		 * 不存在
		 */
		public static final Integer STATE_NONE = -1;
		/**
		 * 正常
		 */
		public static final Integer STATE_NORMAL = 0 ;
		/**
		 * 暂停*
		 */
		public static final Integer STATE_PAUSED = 1 ;
	}

}
